/*
 */

package l06exercicioproposto;

import javax.swing.JOptionPane;

/**
 * 12/05/2008 - PMLF
 * @author mdneto
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        String n1, n2, n3;
        Float m;
        
        n1 = JOptionPane.showInputDialog("Informe nota 1:");
        n2 = JOptionPane.showInputDialog("Informe nota 2:");
        n3 = JOptionPane.showInputDialog("Informe nota 3:");
        
        m = ( Float.valueOf(n1) + 
              Float.valueOf(n2) + 
              Float.valueOf(n3) ) / 3;
        
        if ( m >= 6 ) 
           JOptionPane.showMessageDialog(null, "Media " + m + "  :) "); 
        else
           JOptionPane.showMessageDialog(null, "Media " + m + "  :( "); 
    }

}
